package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.HomeLogoService;
import com.it.park.dao.HomeLogoMapper;
import com.it.park.model.HomeLogo;

@Service("homeLogoService")
public class HomeLogoServiceImpl extends BaseServiceImpl<HomeLogo> implements HomeLogoService {
	
	@Autowired
	private HomeLogoMapper homeLogoMapper;

	@Override
	public boolean insert(HomeLogo record) {
		return homeLogoMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return homeLogoMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(HomeLogo record) {
		return homeLogoMapper.insertSelective(record)==1;
	}
	@Override
	public HomeLogo selectByPrimaryKey(Integer id) {
		return homeLogoMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(HomeLogo record) {
		return homeLogoMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(HomeLogo record) {
		return homeLogoMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<HomeLogo> selectAll() {
		return homeLogoMapper.selectAll();
	}
	@Override
	public List<HomeLogo> selectPagination(Map<String, Object> map) {
		return homeLogoMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return homeLogoMapper.selectTotal(map);
	}
	@Override
	public List<HomeLogo> selectShowImg(Integer type){
		return homeLogoMapper.selectShowImg(type);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(HomeLogo record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<HomeLogo> selectPagination(HomeLogo t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(HomeLogo t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
